package day211;

import javax.swing.*;
import java.awt.*;

public class Ylgy1 {
    public static void main(String[] args) {
        JFrame frame = new JFrame();
        JPanel panel = new JPanel();
        frame.add(panel);
        ImageIcon image = new ImageIcon("res/背景.jpg");
        JLabel background = new JLabel(image);
        panel.add(background);
        frame.setSize(400,800);
        frame.setVisible(true);
    }
}
